<%-- 
    Document   : test1
    Created on : 4 avr. 2013, 23:17:42
    Author     : Alice
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<jsp:include page="header.jsp"></jsp:include>

<s:div id="bloc_contenu">
    <h3>${message}</h3><br />
    <c:forEach items="${searchProducts}" var="searchProduct">
        <s:div id="bloc_produit">
            <table border="0">
                <tr>
                    <td valign="top" class="td_miniature"><img src="pages/img/img_produit_type/${searchProduct.idProductType}.jpg" width="90%" height="90%"/></td>
                    <td valign="top">
                         <c:set var="idProduct" value="${searchProduct.idProductType}"/>
                        <s:a action="ficheProduit">
                            <s:param name="idProduct"><c:out value="${idProduct}"/></s:param>
                            <b>${searchProduct.title}</b>
                        </s:a>
                            <br /><br />${searchProduct.description}</td>
                    <td valign="top" class="td_miniature"><font color="#b22233" size="4"><b>
                        <s:if test="#session['USER'] != null">
                                    <s:if test="#session['USER'].getCountry().devise=='USD'">
                                        <c:out value="${searchProduct.price*sessionScope['RATE']}" /> $
                                    </s:if>
                                    <s:else>
                                        ${searchProduct.price} €
                                    </s:else>
                                </s:if>
                                <s:else>
                                    ${searchProduct.price} €
                                </s:else>
                        </b></font><br />
                        <!--<s:a action="ajouterPanier" includeParams="get"><s:param name="id" value="1" /><input type="image" src="pages/img/btn_ajouter.jpg" alt="Ajouter au panier" /></s:a>-->
                        <br /> En stock

                        <img src="pages/img/ico_en_stock.png"/>
                    </td>
                </tr>

            </table>
        </s:div>
    </c:forEach>
        
</s:div>

<jsp:include page="footer.jsp"></jsp:include>
